package com.example.mystoryapp2.data.network.service

import com.example.mystoryapp2.domain.Story
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.POST

/**
 * 与故事操作相关的接口
 */
interface StoryOperationService {

    @POST("storyOpe/collect")
    fun collect(@Body story: Story): Call<Boolean>

    @POST("storyOpe/publish")
    fun publish(@Body story: Story): Call<Boolean>

    @POST("storyOpe/delete")
    fun delete(@Body story: Story): Call<Boolean>

    @POST("storyOpe/checkCollect")
    fun checkCollect(@Body story: Story): Call<Boolean>


}